<?php

require_once "tfsbox_shouts_view.class.php";

class TFsBOXCommentsView extends TFsBOXShoutsView
	{
		function __construct()
		{
		}

		function renderShoutForm()
			{
				echo "<form id=\"tfsbox_shoutform\" action=\"". $_SERVER['REQUEST_URI'] ."\" method=\"post\">\n";
				echo "<table cellspacing=\"3\" cellpadding=\"3\" style=\"border: 0; width: 100%;\">\n";
				echo "<tr>\n";
				echo "<td><b style=\"display: block;\">Name:</b></td>\n";

				if (!TFsBOX::$Session->hasUsername())
					echo "<td id=\"name_field\"><input name=\"tfsbox_name\" class=\"tfsbox_textfield\" title=\"Only letters, numbers and underscores allowed for name.\" type=\"text\"/></td>\n";
				else
					echo "<td id=\"name_field\"><b>". TFsBOX::$Session->username() ."</b><input type=\"hidden\" name=\"tfsbox_name\" value=\"". TFsBOX::$Session->username() ."\"/></td>\n";

				echo "<td valign=\"top\" rowspan=\"4\" style=\"text-align: center; width: 36px;\">\n";
				echo "<div class=\"button\" title=\"HTML Tags\">A\n";

				$this->renderTextOptions();

				echo "</div>\n";
				echo "<div class=\"button\" style=\"line-height: 0;\" title=\"Smilies\">";
				echo "<img src=\"". TFsBOXSession::urlRoot() ."/". TFsBOX::$Config->value("smiley_pack", "images/smileys/trillian") ."/". TFsBOX::$Database->smiley("smile") ."\" alt=\"\"/>\n";

				$this->renderSmilies();

				echo "</div>\n";
				echo "</td>\n";
				echo "</tr>\n";
				echo "<tr>\n";
				echo "<td><b style=\"display: block;\">Shout:</b></td>\n";
				echo "<td><input type=\"hidden\" name=\"tfsbox_site\" value=\"". '$_SERVER[\'REQUEST_URI\']' ."\"/>";
				echo "<textarea name=\"tfsbox_shout\" class=\"tfsbox_textfield\" type=\"text\"></textarea></td>";
				echo "</tr>\n";
				echo "<tr><td></td>";
				echo "<td style=\"text-align: center;\">";
				echo "<input type=\"reset\" value=\"Clear\"/>\n";
				echo "<input type=\"submit\" value=\"Shout\"/>";
				echo "</td></tr>\n";
				echo "</table>\n";
				echo "</form>\n";
			}

		function renderShouts()
		{
		}
	}

?>
